home *** CD-ROM | disk | FTP | other *** search
- Path: rahul.net!a2i!news
- From: terris@rahul.net (Terris Linenbach)
- Newsgroups: comp.lang.c++
- Subject: STL fix for vectors-in-vectors
- Date: 20 Feb 1996 06:00:57 GMT
- Organization: a2i network
- Message-ID: <4gbo2p$i49@hustle.rahul.net>
- NNTP-Posting-Host: 534.rahul.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- Here is your work-around. Supply the constructor arguments:
-
- std::vector< std::vector<int> > a( 0, std::vector<int>() );
-
- This is ugly. This seems to be yet another problem related to putting
- STL in the std namespace.
-
- Do the same thing for deques.
-
- Thank you,
- Terris
-
- >>The only problem i have is with 2-dim arrays like:
- >>std::vector< std::vector<int> > a;
- >>I get error messages if i include a line like the above one
- >>in my code (i don't remember the exact error-messages).
- >>bye
- >>
- >> Dieter
-
-